Skip to content

chore(write): address #168 nice-to-haves (code subset)#191

Merged
chmmou merged 1 commit into
mainfrom
chore/issue-168-code-nths
May 26, 2026
Merged

chore(write): address #168 nice-to-haves (code subset)#191
chmmou merged 1 commit into
mainfrom
chore/issue-168-code-nths

Conversation

@chmmou

@chmmou chmmou commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

Code subset of the #168 nice-to-have bundle from the post-#13 write-phase reviews. Items 5 (cronjob fixture echo-back comment) follows in a separate PR; items 6+7 stay accepted-as-noted.

  • kaswrite.Call prepends the module label onto the wrapped ErrUnexpectedReturnString message so a regression in e.g. mailforward.Client.Add does not lose its module hint to the canonical kaswrite: sentinel prefix. Sentinel identity unchanged.
  • mail forwards add --target help no longer reads "replaces the full target list" — that wording is only accurate on update.
  • mail lists update --active is now a Y|N string flag (matches mail accounts update --active); removes the slightly non-obvious --active=false form.
  • runWriteE resolves credentials exactly once per invocation; the post-gate dispatch reuses them via the new unexported buildAPIClientFromCreds helper instead of running the config + env + flag resolution a second time inside BuildAPIClient.

Refs #168.

…l-prefixed kaswrite wrap, mail-flag help

- kaswrite.Call: prefix the module label onto the ErrUnexpectedReturnString wrap so a regression in e.g. mailforward.Client.Add no longer hides behind the canonical "kaswrite:" sentinel.
- mail forwards add --target: help no longer claims to "replace the full target list" — that wording is true for update, not for add.
- mail lists update --active: now a Y|N string flag, matching mail accounts update --active. Removes the slightly non-obvious --active=false form.
- runWriteE: resolves credentials exactly once per invocation; the post-gate dispatch reuses the creds via the unexported buildAPIClientFromCreds helper instead of running config+env+flag resolution a second time inside BuildAPIClient.

Refs #168.
@chmmou chmmou merged commit 30f0d92 into main May 26, 2026
6 checks passed
@chmmou chmmou deleted the chore/issue-168-code-nths branch May 26, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant